//
//  CommonScanViewController.h
//  ShoppingExperience
//
//  Created by LiYinDi on 15/10/19.
//  Copyright (c) 2015年 RuiBen. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@protocol CommonScanDelegate;
@interface CommonScanViewController : UIViewController<AVCaptureMetadataOutputObjectsDelegate>
{
    BOOL isDown;
    int num;
    // NSTimer * timer;
    NSString *stringValue;
}

@property(weak, nonatomic)IBOutlet UILabel *lineLabel;
@property(weak, nonatomic)IBOutlet UIButton *scanBtn;
@property(weak, nonatomic)IBOutlet UIButton *alphaBtn;
@property(weak, nonatomic)IBOutlet UIImageView *videoImageView;
@property(weak, nonatomic)IBOutlet UIView *scanViewContainer;
@property(nonatomic)NSTimer *timer;
@property(nonatomic) BOOL isReading;
@property(nonatomic,strong) AVCaptureSession *captureSession;
@property(nonatomic,strong) AVCaptureVideoPreviewLayer *videoPreviewLayer;
@property(nonatomic,weak) id<CommonScanDelegate> delegate;
@end
@protocol CommonScanDelegate <NSObject>
@optional
-(void)CommonScanResult:(NSString *)codeStr;
@end